package com.yly.test1

import android.app.Activity
import android.content.Context
import android.os.Bundle


class CampusNetWorkActivity : Activity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val shp = getSharedPreferences("user", Context.MODE_PRIVATE)


        Thread {
            println("gogogo")
            connectCampusNetwork(
                shp.getString("userIndex",null),
                shp,
                shp.getString("",null),
                this@CampusNetWorkActivity.applicationContext,
                shp.getString("userStudentNo", ""),
                shp.getString("userPassword", "")
            )
        }.start()
    }

    override fun onResume() {
        super.onResume()
        finish()
    }

}

